﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FreeDAM.Domain.Abstract;
using FreeDAM.Domain.Concrete;
using Ninject.Modules;

namespace FreeDAM.Renderer
{
    public class WCFNinjectModule : NinjectModule
    {
        public override void Load()
        {
            Bind<IAssetToRenderRepository>().To<EfAssetToRenderRepository>();
            Bind<IRenditionDefinitionRepository>().To<EfRenditionDefinitionRepository>();
            Bind<IRenditionRepository>().To<EfRenditionRepository>();
            Bind<ITagRepository>().To<EfTagRepository>();
            Bind<IDatabaseFactory>().To<EfDatabaseFactory>().InThreadScope();
            Bind<IDisposable>().To<Disposable>();
        }
    }
}